package com.yuexun.dhdoctor.module.Contract.bean;

import com.yuexun.dhdoctor.base.bean.SelectManyBean;

import java.io.Serializable;

/**
 * Created by work-jx on 2016/7/18.
 */
public class People extends SelectManyBean implements Serializable {
    private int id;
    private int hospId;
    private String departmentName;//部门
    private String departmentId;//部门Id
    private String email;//电子邮件
    private String groupCornet;//集团短号
    private String jobNum;//工号
    private String mobile;//手机号码
    private String phone;//办公电话
    private String phone2;//短号
    private String position;//职务
    private String positional;//职称
    private String rankOrder;//用户在部门的职位等级
    private String relationId;// 用户在部门的关系ID
    private String sex;//性别
    private String userId;
    private String pinyin;
    private String userName;
    private String firstPinyin;

    public int getHospId() {
        return hospId;
    }

    public void setHospId(int hospId) {
        this.hospId = hospId;
    }

    public String getFirstPinyin() {
        return firstPinyin;
    }

    public void setFirstPinyin(String firstPinyin) {
        this.firstPinyin = firstPinyin;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getGroupCornet() {
        return groupCornet;
    }

    public void setGroupCornet(String groupCornet) {
        this.groupCornet = groupCornet;
    }

    public String getJobNum() {
        return jobNum;
    }

    public void setJobNum(String jobNum) {
        this.jobNum = jobNum;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone2() {
        return phone2;
    }

    public void setPhone2(String phone2) {
        this.phone2 = phone2;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getRankOrder() {
        return rankOrder;
    }

    public void setRankOrder(String rankOrder) {
        this.rankOrder = rankOrder;
    }

    public String getRelationId() {
        return relationId;
    }

    public void setRelationId(String relationId) {
        this.relationId = relationId;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPositional() {
        return positional;
    }

    public void setPositional(String positional) {
        this.positional = positional;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof People) {
            People t = (People) obj;
            return this.getUserId().equals(t.getUserId());
        }
        return super.equals(obj);
    }
}
